// @ts-ignore
import request from '@/utils/request';

// 获取分页数据
// export function getListByPageAPI(params) {
//     return request({
//         url: '/center/serviceInfo/list',
//         method: 'get',
//         params,
//     });
// }


export function getListByPageAPI(params) {
  return request({
    url: '/center/serviceInfo/listsystem',
    method: 'get',
    params,
  });
}


// 新增
export function addAPI(data) {
    return request({
        url: '/center/serviceInfo/add',
        method: 'post',
        data,
    });
}

// 根据id查询
export function getByIdAPI(id) {
    return request({
        url: '/center/serviceInfo/view',
        method: 'get',
        params: { id },
    });
}

// 编辑
export function updateAPI(data) {
    return request({
        url: '/center/serviceInfo/update',
        method: 'post',
        data,
    });
}

// 删除
export function delAPI(data) {
    return request({
        url: '/center/serviceInfo/delete',
        method: 'post',
        data,
    });
}
